package com.hzgj.demo.d;

import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Random;
import java.util.concurrent.TimeUnit;

/**
 * Created by Administrator on 2016/9/22.
 */
@Component
public class DServiceImpl implements DService {

    @Override
    public DRet getServiceFromD() {
        try {
            TimeUnit.MILLISECONDS.sleep(new Random().nextInt(10) * 100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return new DRet("d", new Date());
    }
}
